package cn.mandifal.mapper;

import cn.mandifal.pojo.DpSpecification;
import cn.mandifal.pojo.DpSpecificationExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface DpSpecificationMapper {
    int countByExample(DpSpecificationExample example);

    int deleteByExample(DpSpecificationExample example);

    int deleteByPrimaryKey(Long id);

    int insert(DpSpecification record);

    int insertSelective(DpSpecification record);

    List<DpSpecification> selectByExample(DpSpecificationExample example);

    DpSpecification selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") DpSpecification record, @Param("example") DpSpecificationExample example);

    int updateByExample(@Param("record") DpSpecification record, @Param("example") DpSpecificationExample example);

    int updateByPrimaryKeySelective(DpSpecification record);

    int updateByPrimaryKey(DpSpecification record);

    /**
     * 查询规格 id 和 name
     * @return 返回 ["":"","":""]
     */
    List<Map> selectSpecList();
}